package com.information.manage.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.information.manage.basic.common.result.Result;
import com.information.manage.model.entity.AnalysisFileDo;
import com.information.manage.model.query.AddAnalysisFileQuery;
import com.information.manage.model.query.AnalysisFileQuery;
import com.information.manage.model.query.AnalysisFileUpdateQuery;
import com.information.manage.model.vo.AllStatisticVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface AnalysisFileService extends IService<AnalysisFileDo> {
    Result<Page<AnalysisFileDo>> queryPage(AnalysisFileQuery analysisFileQuery);

    // type值：  1查询附件路径   2查询概述路径
    Result<List<String>> getFileEnclosurePath(Long id, Integer type);

    Result add(AddAnalysisFileQuery addAnalysisFileQuery, HttpServletRequest request, List<MultipartFile> enclosures);

    Result<Boolean> delete(List<Long> analysisFileIds);

    // 获取分类的总量
    Result<List<AllStatisticVO>> allStatistic();

    Result<Boolean> updateAf(HttpServletRequest request, AnalysisFileUpdateQuery analysisFileUpdateQuery, List<MultipartFile> enclosures);
}
